package com.andlabs.gd.activities;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;

import com.andlabs.gd.base.GameActivity;
import com.andlabs.gd.base.SimulationListener;
import com.andlabs.gd.communication.CommunicationListener;
import com.andlabs.gd.communication.CommunicatorMock;
import com.andlabs.gd.map.GameMap;
import com.andlabs.gd.objects.Building;
import com.andlabs.gd.objects.Character;
import com.andlabs.gd.objects.Hero;
import com.andlabs.gd.rendering.Renderer;
import com.andlabs.gd.simulation.Simulation;

public class Game extends GameActivity{

	private boolean mIsLoading = true;
	private float mZoomLevel = 1f;
	private CommunicatorMock mCommunicator;
	private List<GameMap> maps;
	private Simulation mSimulation;
	private Renderer mRenderer;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		//these must be done before super.onCreate()! 
		//otherwise initialization may not work.
		mSimulation = new Simulation(this);		
		mRenderer = new Renderer(this, mSimulation);
		setRenderingListener(mRenderer);
		setSimulationListener(mSimulation);
		
		super.onCreate(savedInstanceState);		
		
		mCommunicator = new CommunicatorMock();
		mCommunicator.setCommunicationListener(mSimulation);
	}
}
